package com.bawei.module_mine.http

import com.bawei.lib_common.base.BaseResponse
import com.bawei.module_mine.model.LoginResultModel
import com.bawei.module_mine.model.UserInfoModel
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 *作者：lxy
 *功能:
 *时间：2025/5/26
 */
interface MineApi {

    @POST("/app/sms/sendLoginCode")
    suspend fun sendLoginCode(
        @Query("operatorType") operatorType: String,
        @Query("phone") phone: String
    ): BaseResponse<Boolean>

    @POST("/app/sms/sendForgetPwdCode")
    suspend fun sendForgetPwdCode(
        @Query("operatorType") operatorType: String,
        @Query("phone") phone: String
    ): BaseResponse<Boolean>

    @POST("/app/club_auth/login")
    suspend fun login(@Body body: RequestBody): BaseResponse<LoginResultModel>

    @GET("/app/member/getUserInfo")
    suspend fun getUserInfo():BaseResponse<UserInfoModel>
}